package com.mingsoft.led;

import java.util.HashMap;
import java.util.Map;

public enum Navigations {
	PPT("pptNav"), VIDEO("videoNav"), CAMERA("cameraNav"), PICTURE("pictureNav");
	private String id = null;
	private static Map<String, Navigations> maps = new HashMap<String, Navigations>();
	static {
		for(Navigations n : Navigations.values()){
			maps.put(n.getId(), n);
		}
	}
	private Navigations(String value){
		this.id = value;
	}
	public String getId(){
		return id;
	}
	public static Navigations getNavigation(String id){
		return maps.containsKey(id) ? maps.get(id) : VIDEO;
	}
}
